// 2023-03-09 11:04:20
import BaseModel from "../baseModel.js";

class VaccineModel extends BaseModel {
    /**
     * 
     * @param {VaccineModel} model 
     */
    constructor(model) {
        super(model);
        /* 自定义属性以及重载 */
        this.vaccineName = PetModel.CheackNull(model.name);
        this.introduction = model.introduction
        this.effect = model.effect
        this.suggesteAge = model.suggesteAge
        this.adverseReaction = model.adverseReaction
        this.countermeasures = model.countermeasures
        this.type = PetModel.CheackBoolean(model.type); // 0:猫；1：狗
    }
    static Instance = 'vaccine' // 表名
}
export default VaccineModel;